<?php
    // 相应数据给客户端
    $name = $_REQUEST["name"];

    $array = array("id" => "1321321", "name" => "$name");

    if($name != ''){
        echo json_encode($array);
    }
?>